/*
Simple Forum Auto Poster.
Copyright (C) 2011 Gianni Van Hoecke.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
package domain.forumdata.tag;

import java.io.Serializable;

/**
 *
 * @author Gianni Van Hoecke <gianni.vh@gmail.com>
 *
 * Represents a "tag". Each tag has a name which defines a Tag object.
 * It also has one or more synonyms, because every other forum uses its own system.
 *
 */
public class Tag implements Serializable
{
    private String tagName;
    private String[] synonyms;

    /**
     * Default constructor. Initializes a new tag.
     * @param tagName The name for this tag.
     * @param synonyms The synonyms for this tag.
     */
    public Tag(String tagName, String[] synonyms)
    {
        this.tagName = tagName;
        this.synonyms = synonyms;
    }

    /**
     * @return The synonyms of the tag.
     */
    public String[] getSynonyms()
    {
        return synonyms;
    }

    /**
     * Sets the synonyms for this tag.
     * @param synonyms The synonyms.
     */
    public void setSynonyms(String[] synonyms)
    {
        this.synonyms = synonyms;
    }

    /**
     * @return The name of this tag.
     */
    public String getTagName()
    {
        return tagName;
    }

    /**
     * Sets the name of this tag.
     * @param tagName The new name.
     */
    public void setTagName(String tagName)
    {
        this.tagName = tagName;
    }
}